package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


@Data
public class UpdateProductDTO {
    @NotNull
    @ApiModelProperty(value = "商品ID", required = true)
    private Long id;

    private String title;

    private String url;


    @Min(value = 0,message = "价格不能小于0")
    private Long price;

    @ApiModelProperty(value = "是否启用", required = true,example = "0未启用,1启用")
    private String isEnable;


    private Long productTypeId;

    @Min(value = 0,message = "销售量不能小于0")
    private Long sale;

    private String description;
}
